home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Source
/
Foundation
/
Common
/
ZLocker.h
< prev
next >
Wrap
Text File
|
1996-10-28
|
973b
|
45 lines
/*
* File: ZLocker.h
* Summary: Stack based class that locks things.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 1/14/96 JDJ Created
*/
#pragma once
#include <ZConstants.h>
#include <ZDebug.h>
//-----------------------------------
// Forward References
//
class MBaseLockable;
// ===================================================================================
// class TLocker
// ===================================================================================
class TLocker {
public:
~TLocker();
TLocker(const MBaseLockable& object, bool moveHigh = kDontMoveHigh);
TLocker(const MBaseLockable* object, bool moveHigh = kDontMoveHigh);
TLocker(Handle hand, bool moveHigh = kDontMoveHigh);
private:
MBaseLockable* mObject;
Handle mHandle;
SignedByte mOldState;
};